package com.albertattard.jff;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;

/**
 * This is the entry point of the application.
 * 
 * @author Albert Attard
 */
public class Main {

	/**
	 * Creates an instance of the application. Command line arguments are not
	 * used.
	 * 
	 * @param args
	 *            the command line arguments. These are not used in the program
	 */
	public static void main(final String[] args) {
		// Creates and displays the application in the middle of the screen.
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				final Application app = new Application();
				app.setTitle("Jar File Finder");
				app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
				app.pack();
				app.setLocationRelativeTo(null);
				app.setVisible(true);
			}
		});
	}
}
